'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-23 17:00:49 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-23 17:28:03
 */
'''
import os

ret = os.fork()
print(ret)

if ret == 0:
    print("子进程%d-%d"%(os.getpid(),os.getppid()))
else:
    print("父进程%d"%os.getpid())
